﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetNuke.Entities.Content;
using DotNetNuke.Entities.Content.Common;


namespace DotNetNuke.Modules.CashBook.Components.Taxonomy
{
    public class Terms
    {
        public void ManageCashLineTerms(CashLine objCashLine, ContentItem objContent)
        {
            RemoveCashLineTerms(objContent);

            foreach (var term in objCashLine.Terms)
            {
                Util.GetTermController().AddTermToContent(term, objContent);
            }
        }
        public void RemoveCashLineTerms(ContentItem objContent)
        {

            Util.GetTermController().RemoveTermsFromContent(objContent);
        }
    }
}